;-| ai |-------------------------------------------------------------------
[Command]
name = "AI0"
command = a,a,a,a,a,a,a,a,a,a,a,a,a,a,a,a,a,a,a
time = 0
[Command]
name = "AI1"
command = b,b,b,b,b,b,b,b,b,b,b,b,b,b,b,b,b,b,b
time = 0
[Command]
name = "AI2"
command = c,c,c,c,c,c,c,c,c,c,c,c,c,c,c,c,c,c,c
time = 0
[Command]
name = "AI3"
command = x,x,x,x,x,x,x,x,x,x,x,x,x,x,x,x,x,x,x
time = 0
[Command]
name = "AI4"
command = y,y,y,y,y,y,y,y,y,y,y,y,y,y,y,y,y,y,y
time = 0
[Command]
name = "AI5"
command = z,z,z,z,z,z,z,z,z,z,z,z,z,z,z,z,z,z,z
time = 0
[Command]
name = "AI6"
command = s,s,s,s,s,s,s,s,s,s,s,s,s,s,s,s,s,s,s
time = 0
[Command]
name = "AI7"
command = F,F,F,F,F,F,F,F,F,F,F,F,F,F,F,F,F,F,F
time = 0
[Command]
name = "AI8"
command = D,D,D,D,D,D,D,D,D,D,D,D,D,D,D,D,D,D,D
time = 0
[Command]
name = "AI9"
command = B,B,B,B,B,B,B,B,B,B,B,B,B,B,B,B,B,B,B
time = 0
[Command]
name = "AI10"
command = U,U,U,U,U,U,U,U,U,U,U,U,U,U,U,U,U,U,U
time = 0
[Command]
name = "AI11"
command = a,a,a,a,a,a,a,a,a,a,a,a,a,a,a,a,a,a,a
time = 0
[Command]
name = "AI12"
command = c,c,c,c,c,c,c,c,c,c,c,c,c,c,c,c,c,c,c
time = 0
[Command]
name = "AI13"
command = x,x,x,x,x,x,x,x,x,x,x,x,x,x,x,x,x,x,x
time = 0
[Command]
name = "AI14"
command = y,y,y,y,y,y,y,y,y,y,y,y,y,y,y,y,y,y,y
time = 0
[Command]
name = "AI15"
command = z,z,z,z,z,z,z,z,z,z,z,z,z,z,z,z,z,z,z
time = 0
[Command]
name = "AI16"
command = s,s,s,s,s,s,s,s,s,s,s,s,s,s,s,s,s,s,s
time = 0
[Command]
name = "AI17"
command = a,B,c,x,y,z,s,B,D,F,U,a,b,c,x,y,z,s,s
time = 0
[Command]
name = "AI18"
command = a,a,a,a,a,a,a,a,a,a,a,a,a,a,a,a,a,a,a
time = 0
[Command]
name = "AI19"
command = b,b,b,b,b,b,b,b,b,b,b,b,b,b,b,b,b,b,b
time = 0
[Command]
name = "AI20"
command = c,c,c,c,c,c,c,c,c,c,c,c,c,c,c,c,c,c,c
time = 0
[Command]
name = "AI21"
command = x,x,x,x,x,x,x,x,x,x,x,x,x,x,x,x,x,x,x
time = 0
[Command]
name = "AI22"
command = y,y,y,y,y,y,y,y,y,y,y,y,y,y,y,y,y,y,y
time = 0
[Command]
name = "AI23"
command = z,z,z,z,z,z,z,z,z,z,z,z,z,z,z,z,z,z,z
time = 0
[Command]
name = "AI24"
command = s,s,s,s,s,s,s,s,s,s,s,s,s,s,s,s,s,s,s
time = 0
[Command]
name = "AI25"
command = F,F,F,F,F,F,F,F,F,F,F,F,F,F,F,F,F,F,F
time = 0
[Command]
name = "AI26"
command = D,D,D,D,D,D,D,D,D,D,D,D,D,D,D,D,D,D,D
time = 0
[Command]
name = "AI27"
command = B,B,B,B,B,B,B,B,B,B,B,B,B,B,B,B,B,B,B
time = 0
[Command]
name = "AI28"
command = U,U,U,U,U,U,U,U,U,U,U,U,U,U,U,U,U,U,U
time = 0
[Command]
name = "AI29"
command = a,a,a,a,a,a,a,a,a,a,a,a,a,a,a,a,a,a,a
time = 0
[Command]
name = "AI30"
command = c,c,c,c,c,c,c,c,c,c,c,c,c,c,c,c,c,c,c
time = 0
[Command]
name = "AI31"
command = x,x,x,x,x,x,x,x,x,x,x,x,x,x,x,x,x,x,x
time = 0
[Command]
name = "AI32"
command = y,y,y,y,y,y,y,y,y,y,y,y,y,y,y,y,y,y,y
time = 0
[Command]
name = "AI33"
command = z,z,z,z,z,z,z,z,z,z,z,z,z,z,z,z,z,z,z
time = 0
[Command]
name = "AI34"
command = s,s,s,s,s,s,s,s,s,s,s,s,s,s,s,s,s,s,s
time = 0
[Command]
name = "AI35"
command = z,z,z,z,z,z,z,z,z,z,z,z,z,z,z,z,z,z,z
time = 0
[Command]
name = "AI36"
command = z,z,z,z,z,z,a,a,a,z,z,z,z,z,z,z,z,z,z
time = 0
[Command]
name = "AI37"
command = z,a,a,a,a,a,a,a,a,a,a,a,a,a,a,a,z,z,z
time = 0
[Command]
name = "AI38"
command = z,z,z,z,z,a,a,a,z,z,z,z,z,a,a,a,z,z,z
time = 0
[Command]
name = "AI39"
command = z,z,z,z,z,a,a,a,z,z,z,z,z,z,a,a,z,z,z
time = 0
[Command]
name = "AI40"
command = z,z,z,z,a,a,a,z,z,z,z,a,z,z,a,a,z,z,z
time = 0
[Command]
name = "AI41"
command = z,z,z,a,z,z,z,z,z,z,z,z,z,a,a,z,z,z,z
time = 0
[Command]
name = "AI42"
command = z,z,z,z,z,z,z,z,z,z,z,z,z,z,z,z,z,z,z
time = 0
[Command]
name = "AI43"
command = z,z,z,z,z,z,z,z,z,z,z,z,z,z,z,z,a,a,z
time = 0
[Command]
name = "AI44"
command = z,z,a,a,a,a,z,z,z,z,z,z,z,z,z,a,a,a,z
time = 0
[Command]
name = "AI45"
command = z,z,z,z,z,z,a,a,z,z,z,z,z,a,a,a,a,z,z
time = 0
[Command]
name = "AI46"
command = z,z,z,z,z,z,z,z,a,a,a,a,a,a,z,z,z,z,z
time = 0
[Command]
name = "AI47"
command = z,z,z,a,a,a,a,z,z,z,z,z,z,z,z,z,z,z,z
time = 0
[Command]
name = "AI48"
command = z,z,z,z,z,a,a,a,z,z,z,a,a,a,z,z,a,z,a
time = 0
[Command]
name = "AI49"
command = z,z,z,z,a,a,a,z,z,z,z,z,a,a,a,z,z,z,z
time = 0
[Command]
name = "AI50"
command = z,z,z,a,a,z,z,z,z,z,z,z,z,z,a,a,z,z,z
time = 0

;-| Super Motions |--------------------------------------------------------
[Command]
name = "アイアンメイデン"
command = ~D, F, D, F, b
time = 25

[Command]
name = "アイアンメイデン"
command = ~D, F, D, F, ~b
time = 25

[Command]
name = "ウィンガー"
command = ~D, B, D, F, b
time = 30

[Command]
name = "ウィンガー"
command = ~D, B, D, F, ~b
time = 30

[Command]
name = "エメラルドレイン"
command = ~D, F, D, F, y
time = 25

[Command]
name = "エメラルドレイン"
command = ~D, F, D, F, ~y
time = 25

[Command]
name = "ウィンガー派生"
command = ~F, DF, D, DB, B, b
time = 20

[Command]
name = "ウィンガー派生"
command = ~F, DF, D, DB, B, ~b
time = 20

;-| Special Motions |------------------------------------------------------

[Command]
name = "ロンギヌス"
command = ~D, DB, B, z

[Command]
name = "ロンギヌス"
command = ~D, DB, B, ~z

[Command]
name = "プリティメイズ"
command = ~D, DF, F, z

[Command]
name = "プリティメイズ"
command = ~D, DF, F, ~z

[Command]
name = "シークレットガーデン"
command = ~D, DB, B, b

[Command]
name = "シークレットガーデン"
command = ~D, DB, B, ~b

[Command]
name = "タンデムトップ＿Ｓ"
command = ~D, DF, F, y

[Command]
name = "タンデムトップ＿Ｓ"
command = ~D, DF, F, ~y

[Command]
name = "タンデムトップ＿ＨＳ"
command = ~D, DF, F, b

[Command]
name = "タンデムトップ＿ＨＳ"
command = ~D, DF, F, ~b

[Command]
name = "アイアンセイバー"
command = ~D, DB, B, x

[Command]
name = "アイアンセイバー"
command = ~D, DB, B, ~x

[Command]
name = "ラストシェイカーEX"
command = ~D, DB, B, y

[Command]
name = "ラストシェイカーEX"
command = ~D, DB, B, ~y

[Command]
name = "ラストシェイカーX"
command = y, y, y, y, y
time = 70

[Command]
name = "バッドムーン"
command = ~D, DF, F, x

[Command]
name = "バッドムーン"
command = ~D, DF, F, ~x

[Command]
name = "高速落下"
command = ~D, DF, F, a

[Command]
name = "高速落下"
command = ~D, DF, F, ~a

[Command]
name = "前転"
command = ~D, DB, B, a

[Command]
name = "前転"
command = ~D, DB, B, ~a

[Command]
name = "SF"
command = ~D, DB, B, y

[Command]
name = "SF"
command = ~D, DB, B, ~y

;-| Double Tap |-----------------------------------------------------------
[Command]
name = "FF"     ;Required (do not remove)
command = F, F
time = 10

[Command]
name = "BB"     ;Required (do not remove)
command = B, B
time = 10

[Command]
name = "highjump"
command = D, $U
time = 8

[Command]
name = "highjump_n"
command = D, U
time = 8

[Command]
name = "highjump_f"
command = D, UF
time = 8

[Command]
name = "highjump_b"
command = D, UB
time = 8

[Command]
name = "highjumpcancel"
command = U, D, U
time = 20

;-| 2/3 Button Combination |-----------------------------------------------
[Command]
name = "recovery";Required (do not remove)
command = a
time = 1
[Command]
name = "recovery";Required (do not remove)
command = b
time = 1
[Command]
name = "recovery";Required (do not remove)
command = x
time = 1
[Command]
name = "recovery";Required (do not remove)
command = y
time = 1

[Command]
name = "一撃必殺準備"
command = a+b+x+y

[Command]
name = "一撃必殺準備"
command = c+z

[Command]
name = "rc"
command = a+b+x

[Command]
name = "rc"
command = a+b+y

[Command]
name = "rc"
command = a+y+x

[Command]
name = "rc"
command = b+x+y

[Command]
name = "rc"
command = c

[Command]
name = "fd"
command = a+x

[Command]
name = "fd"
command = a+y

[Command]
name = "fd"
command = a+b

[Command]
name = "fd"
command = b+x

[Command]
name = "fd"
command = b+y

[Command]
name = "fd"
command = x+y

[Command]
name = "burst"
command = z+a

[Command]
name = "burst"
command = z+b

[Command]
name = "burst"
command = z+x

[Command]
name = "burst"
command = z+y

[Command]
name = "dust"
command = y+b

;-| Dir + Button |---------------------------------------------------------
[Command]
name = "fwd_a"
command = /F,a
time = 1

[Command]
name = "fwd_x"
command = /F,x
time = 1

[Command]
name = "fwd_b"
command = /F,b
time = 1

[Command]
name = "fwd_s"
command = /F,s
time = 1

[Command]
name = "down_a"
command = /$D,a
time = 1

[Command]
name = "down_b"
command = /$D,b
time = 1

[Command]
name = "down_x"
command = /$D,x
time = 1

[Command]
name = "down_y"
command = /$D,y
time = 1

[Command]
name = "down_z"
command = /$D,z
time = 1

[Command]
name = "down_yb"
command = /$D,y+b
time = 1

[Command]
name = "back_a"
command = /B,a
time = 1

[Command]
name = "back_b"
command = /B,b
time = 1

[Command]
name = "back_x"
command = /B,x
time = 1

[Command]
name = "3_x"
command = /DF,x
time = 1

[Command]
name = "1_x"
command = /DB,x
time = 1

;-| Single Button |---------------------------------------------------------
[Command]
name = "a"
command = a
time = 1

[Command]
name = "b"
command = b
time = 1

[Command]
name = "c"
command = c
time = 1

[Command]
name = "x"
command = x
time = 1

[Command]
name = "y"
command = y
time = 1

[Command]
name = "z"
command = z
time = 1

[Command]
name = "start"
command = s
time = 1

;-| Hold Dir |--------------------------------------------------------------
[Command]
name = "holdfwd";Required (do not remove)
command = /$F
time = 1

[Command]
name = "holdback";Required (do not remove)
command = /$B
time = 1

[Command]
name = "holdup" ;Required (do not remove)
command = /$U
time = 1

[Command]
name = "holddown";Required (do not remove)
command = /$D
time = 1

[Command]
name = "holdx"
command = /x
time = 1

[Command]
name = "!hold_x"
command = ~x
time = 1

[Command]
name = "holda"
command = /a
time = 1

[Command]
name = "holdy"
command = /y
time = 1

[Command]
name = "holdb"
command = /b
time = 1

[Command]
name = "holdc"
command = /c
time = 1

[Command]
name = "holdz"
command = /z
time = 1

[Command]
name = "holds"
command = /s
time = 1

[command]
name="fwd"
command=F
time=1
[command]
name="back"
command=B
time=1
[command]
name="up"
command=U
time=1
[command]
name="down"
command=D
time=1


[Statedef -1];---------------------------------------------------------------

[State -3]
type = changestate
trigger1 = ishelper
trigger1 = ishelper(780+root,id)
trigger1 = stateno != 780
value = 780

[State -3]
type=changestate
trigger1= ishelper
trigger1= ishelper(10000+root,id)
trigger1= stateno!=10000
value=10000



[State -1]
type = ChangeState
triggerall = var(59) <= 0
triggerall = var(40) = 0
triggerall = !ishelper
triggerall = command = "rc"
triggerall = Power >= 500
triggerall = movetype != H
triggerall = var(58) != 3
trigger1 = numhelper(1299) >= 1
value = 961
ignorehitpause = 1

[State -1]
type = ChangeState
value = 961
triggerall = !ishelper
triggerall = var(59) <= 0
triggerall = var(40) = 0
triggerall = command = "rc"
triggerall = Power >= 500
triggerall = statetype = A
triggerall = movetype != H
triggerall = var(58) != 3

trigger1 = time = [4,7]
trigger1 = stateno = 1201

trigger2 = var(58)=2
trigger2 = anim = 3000
trigger2 = animelemtime(12) >= 0
trigger2 = animelemtime(13) < 0

trigger3 = time = [8,11]
trigger3 = stateno = 1120 || stateno = 1170

trigger4 = time = [6,9]
trigger4 = stateno = 1140 || stateno = 1180

ignorehitpause = 1

[State -1]
type = ChangeState
value = 960
triggerall = !ishelper
triggerall = var(59) <= 0
triggerall = var(40) = 0
triggerall = command = "rc"
triggerall = Power >= 500
triggerall = movetype != H
triggerall = var(58) != 3
trigger1 = var(58)!=2
trigger1 = time = [13,16]
trigger1 = stateno = 1150

trigger2 = var(58)=2
trigger2 = time = [19,21]
trigger2 = stateno = 1150

trigger3 = var(58)!=2
trigger3 = time = [9,10]
trigger3 = stateno = 206

trigger4 = var(58)!=2
trigger4 = time = [12,14]
trigger4 = stateno = 215

trigger5 = var(58)=2
trigger5 = time = [2,4]
trigger5 = stateno = 1100

ignorehitpause = 1

[State -1]
type = ChangeState
value = 950
triggerall = !ishelper
triggerall = var(59) <= 0
triggerall = var(40) = 0
triggerall = command = "rc"
triggerall = Power >= 1000
triggerall = statetype != A
trigger1 = (stateno = [200,899]) && (movecontact||movereversed||fvar(28))
trigger2 = (stateno = [1000,3999]) && (movecontact||movereversed||fvar(28))
trigger2 = stateno != 1220
trigger3 = (stateno = [200,3999]) && (var(6)||fvar(28))
trigger4 = (stateno = [200,451]) && var(29)

[State -1]
type = ChangeState
value = 951
triggerall = !ishelper
triggerall = var(59) <= 0
triggerall = var(40) = 0
triggerall = command = "rc"
triggerall = Power >= 1000
triggerall = statetype = A
trigger1 = (stateno = [200,899]) && (movecontact||movereversed||fvar(28))
trigger2 = (stateno = [1000,3999]) && (movecontact||movereversed||fvar(28))
trigger2 = stateno != 1220
trigger3 = (var(6)||fvar(28))
trigger4 = (stateno = [600,640]) && var(29)

[State -2]
type = ChangeState
value = 750
triggerall = !ishelper
triggerall = var(58) != 3
triggerall = var(59) <= 0
triggerall = fvar(33) >= 1.5
triggerall = command = "burst"
triggerall = alive && roundstate = 2
trigger1 = (ctrl||fvar(28))
trigger2 = stateno = [100,101]
trigger3 = time <= 1
trigger3 = movetype = A
trigger3 = stateno = [200,640]
trigger3 = prevstateno != [200,640]

[State -1]
type = ChangeState
value = 700
triggerall = var(59) <= 0
triggerall = !ishelper
triggerall = command = "holdfwd"
triggerall = command = "fd"||(command = "holdx")+(command ="holda")+(command ="holdy")+(command ="holdb")>=2
triggerall = command != "holddown"
triggerall = power >= 1000
triggerall = var(40) = 0
trigger1 = Stateno = [150,153]



[State -1]
type = ChangeState
value = 160+(statetype = C)*2+(statetype = A)*4
triggerall = !ishelper
triggerall = var(59) <= 0
triggerall = roundstate = 2
triggerall = power >= 20
triggerall = command = "holdback"
triggerall = (command = "b" && command = "y")||(command = "holdb" && command = "y")||(command = "b" && command = "holdy")
triggerall = var(40) = 0
triggerall = var(58) = 2
triggerall = helper(780+id),fvar(17)=0
trigger1 = (ctrl||fvar(28))||(stateno = [120,140])
trigger2 = stateno = [100,101]
trigger3 = stateno = [110,115]
trigger4 = stateno = 52
trigger5 = stateno = [195, 197]
trigger5 = time > ifelse((anim=196||anim=198),18,64)

[State 153, 3]
type = ChangeState
triggerall = !ishelper
triggerall = helper(780+id),sysvar(0)
triggerall = helper(780+id),sysvar(1)
trigger1 = ((var(20) = [1,7]) && Time >= 15) || HitShakeOver
trigger1 = stateno = 150 || stateno = 152 || stateno = 154
trigger2 = stateno = 156
trigger2 = Time >= 13
value = helper(780+id),sysvar(1)




[State -1, 3000]
type = ChangeState
value = 3100
triggerall = !ishelper
triggerall = var(59) <= 0
triggerall = var(40) = 0
triggerall = var(25) = 0
triggerall = power >= 1000
triggerall = command = "エメラルドレイン"
trigger1 = statetype != A
trigger1 = (ctrl||fvar(28))
trigger2 = var(3) = 0
trigger2 = (stateno = [200,450]) && (movecontact||movereversed)
trigger2 = (stateno != [240,242])
trigger2 = stateno != 217
trigger3 = stateno = 100
trigger4 = stateno = 101
trigger5 = stateno = 40 || stateno = 52
trigger6 = stateno = [195, 197]
trigger6 = time > ifelse((anim=196||anim=198),18,64)

trigger7 = (stateno = [200,451]) && var(29)
trigger7 = stateno != 217
trigger7 = stateno != [241,242]

trigger8 = var(58)=2
trigger8 = stateno = 1301

trigger9 = numhelper(780+id)
trigger9 = helper(780+id),sysvar(0)
trigger9 = stateno = 151 || stateno = 153 || (stateno = 155 && statetype != A)



[State -1]
type = ChangeState
value = 3050
triggerall = !ishelper
triggerall = var(59) <= 0
triggerall = var(40) = 0
triggerall = var(58) = 1
triggerall = power >= 1000
triggerall = command = "ウィンガー"
trigger1 = statetype = A
trigger1 = (ctrl||fvar(28))
trigger2 = (stateno = [600,650]) && (movecontact||movereversed || var(29))
trigger3 = (stateno = 110 && time >= 4) || (stateno = 115 && time >= 5)

trigger4 = numhelper(780+id)
trigger4 = helper(780+id),sysvar(0)
trigger4 = stateno = 155 && statetype = A

[State -1, 3000]
type = ChangeState
value = 3000 + (var(58)=1)*30
triggerall = !ishelper
triggerall = var(59) <= 0
triggerall = var(40) = 0
triggerall = var(25) = 0
triggerall = power >= 1000
triggerall = command = "ウィンガー"
trigger1 = statetype != A
trigger1 = (ctrl||fvar(28)) || (StateNo = 5120 && animtime = 0)
trigger2 = var(3) = 0
trigger2 = (stateno = [200,450]) && (movecontact||movereversed)
trigger2 = (stateno != [240,242])
trigger2 = stateno != 217
trigger3 = stateno = 100
trigger4 = stateno = 101
trigger5 = stateno = 40 || stateno = 52
trigger6 = stateno = [195, 197]
trigger6 = time > ifelse((anim=196||anim=198),18,64)

trigger7 = (stateno = [200,451]) && var(29)
trigger7 = stateno != 217
trigger7 = stateno != [241,242]

trigger8 = var(58)=2
trigger8 = stateno = 1301

trigger9 = numhelper(780+id)
trigger9 = helper(780+id),sysvar(0)
trigger9 = stateno = 151 || stateno = 153 || (stateno = 155 && statetype != A)





;---------------------------------------------------------------------------
[State -1, 3000]
type = ChangeState
value = 4001
triggerall = var(59) <= 0
triggerall = var(25) = 0
triggerall = var(40) = 1
triggerall = command = "アイアンメイデン"
trigger1 = statetype != A
trigger1 = (ctrl||fvar(28))
trigger2 = stateno = 100
trigger3 = stateno = 101
trigger4 = stateno = 40 || stateno = 52
trigger5 = stateno = [195, 197]
trigger5 = time > ifelse((anim=196||anim=198),18,64)
;---------------------------------------------------------------------------
[State -1, 3000]
type = ChangeState
value = 4000
triggerall = var(59) <= 0
triggerall = var(25) = 0
triggerall = var(40) < 2
triggerall = command = "一撃必殺準備"
triggerall = numpartner = 0
triggerall = numenemy != 2
trigger1 = statetype != A
trigger1 = (ctrl||fvar(28))
trigger2 = stateno = 100
trigger3 = stateno = 101
trigger4 = stateno = 40 || stateno = 52
trigger5 = stateno = [195, 197]
trigger5 = time > ifelse((anim=196||anim=198),18,64)






;---------------------------------------------------------------------------


[State -1]
type = ChangeState
value = 1850
triggerall = !ishelper
triggerall = var(59) <= 0
triggerall = var(40) = 0
triggerall = var(58) = 2
triggerall = power >= 500
;triggerall = var(36) != 1
;triggerall = var(42) != 1
triggerall = command = "プリティメイズ"
trigger1 = statetype = A
trigger1 = (ctrl||fvar(28))
trigger2 = (stateno = [600,650]) && (movecontact||movereversed || var(29)) && var(3) = 0
trigger3 = (stateno = 110 && time >= 4) || (stateno = 115 && time >= 5)

trigger4 = numhelper(780+id)
trigger4 = helper(780+id),sysvar(0)
trigger4 = stateno = 155 && statetype = A


[State -1]
type = ChangeState
value = 1800
triggerall = !ishelper
triggerall = var(59) <= 0
triggerall = var(40) = 0
triggerall = var(58) = 2
triggerall = power >= 500
triggerall = var(36) != 1
triggerall = var(42) != 1
triggerall = command = "プリティメイズ"
trigger1 = statetype != A
trigger1 = (ctrl||fvar(28))
trigger2 = var(3) = 0
trigger2 = (stateno = [200,451]) && (movecontact||movereversed)
trigger2 = (stateno != [240,242])
trigger3 = stateno = 100
trigger4 = stateno = 101
trigger5 = stateno = 40 || stateno = 52
trigger6 = stateno = [195, 197]
trigger6 = time > ifelse((anim=196||anim=198),18,64)

trigger7 = (stateno = [200,451]) && var(29)
trigger7 = stateno != [240,242]

trigger8 = var(58)=2
trigger8 = stateno = 1301

trigger9 = numhelper(780+id)
trigger9 = helper(780+id),sysvar(0)
trigger9 = stateno = 151 || stateno = 153 || (stateno = 155 && statetype != A)

[State -1]
type = ChangeState
value = 1200
triggerall = !ishelper
triggerall = var(59) <= 0
triggerall = command = "バッドムーン"
triggerall = pos y <= ifelse(vel y < 0,-30,0)
trigger1 = statetype = A
trigger1 = (ctrl||fvar(28))
trigger2 = (stateno = [600,650]) && (movecontact||movereversed || var(29)) && var(3) = 0
trigger3 = (stateno = 110 && time >= 4) || (stateno = 115 && time >= 5)

trigger4 = numhelper(780+id)
trigger4 = helper(780+id),sysvar(0)
trigger4 = stateno = 155 && statetype = A


[State -1]
type = ChangeState
value = 1300
triggerall = !ishelper
triggerall = var(59) <= 0
triggerall = command = "高速落下"
triggerall = pos y <= ifelse(vel y < 0,-30,0)
trigger1 = statetype = A
trigger1 = (ctrl||fvar(28))
trigger2 = (stateno = [600,650]) && (movecontact||movereversed || var(29)) && var(3) = 0
trigger3 = (stateno = 110 && time >= 4) || (stateno = 115 && time >= 5)

trigger4 = numhelper(780+id)
trigger4 = helper(780+id),sysvar(0)
trigger4 = stateno = 155 && statetype = A

[State -1]
type = ChangeState
value = 1600
triggerall = !ishelper
triggerall = var(59) <= 0
triggerall = var(34) = 0
triggerall = command = "SF"
triggerall = var(58) != 3
trigger1 = statetype = A
trigger1 = (ctrl||fvar(28))
trigger2 = (stateno = [600,650]) && (movecontact||movereversed || var(29)) && var(3) = 0
trigger3 = (stateno = 110 && time >= 4) || (stateno = 115 && time >= 5)

trigger4 = numhelper(780+id)
trigger4 = helper(780+id),sysvar(0)
trigger4 = stateno = 155 && statetype = A

[State -1]
type = ChangeState
value = 1140
triggerall = !ishelper
triggerall = var(59) <= 0
triggerall = var(58) = 1
triggerall = var(36) != 1
triggerall = var(42) != 1
triggerall = command = "タンデムトップ＿Ｓ"
trigger1 = statetype = A
trigger1 = (ctrl||fvar(28))
trigger2 = (stateno = [600,650]) && (movecontact||movereversed || var(29)) && var(3) = 0
trigger3 = (stateno = 110 && time >= 4) || (stateno = 115 && time >= 5)

trigger4 = numhelper(780+id)
trigger4 = helper(780+id),sysvar(0)
trigger4 = stateno = 155 && statetype = A

[State -1]
type = ChangeState
value = 1180
triggerall = !ishelper
triggerall = var(59) <= 0
triggerall = var(58) = 1
triggerall = var(36) != 1
triggerall = var(42) != 1
triggerall = command = "タンデムトップ＿ＨＳ"
trigger1 = statetype = A
trigger1 = (ctrl||fvar(28))
trigger2 = (stateno = [600,650]) && (movecontact||movereversed || var(29)) && var(3) = 0
trigger3 = (stateno = 110 && time >= 4) || (stateno = 115 && time >= 5)

trigger4 = numhelper(780+id)
trigger4 = helper(780+id),sysvar(0)
trigger4 = stateno = 155 && statetype = A

[State -1]
type = ChangeState
value = 1500
triggerall = !ishelper
triggerall = var(59) <= 0
triggerall = command = "アイアンセイバー"
trigger1 = statetype != A
trigger1 = (ctrl||fvar(28))
trigger2 = var(3) = 0
trigger2 = (stateno = [200,451]) && (movecontact||movereversed)
trigger2 = (stateno != [240,242])
trigger3 = stateno = 100
trigger4 = stateno = 101
trigger5 = stateno = 40 || stateno = 52
trigger6 = stateno = [195, 197]
trigger6 = time > ifelse((anim=196||anim=198),18,64)

trigger7 = (stateno = [200,451]) && var(29)
trigger7 = stateno != [240,242]

trigger8 = var(58)=2
trigger8 = stateno = 1301

trigger9 = numhelper(780+id)
trigger9 = helper(780+id),sysvar(0)
trigger9 = stateno = 151 || stateno = 153 || (stateno = 155 && statetype != A)

;---------------------------------------------------------------------------



[State -1]
type = ChangeState
value = 1400
triggerall = !ishelper
triggerall = var(59) <= 0
triggerall = command = "前転"
trigger1 = statetype != A
trigger1 = (ctrl||fvar(28))
trigger2 = var(3) = 0
trigger2 = (stateno = [200,451]) && (movecontact||movereversed)
trigger2 = (stateno != [240,242])
trigger3 = stateno = 100
trigger4 = stateno = 101
trigger5 = stateno = 40 || stateno = 52
trigger6 = stateno = [195, 197]
trigger6 = time > ifelse((anim=196||anim=198),18,64)

trigger7 = (stateno = [200,451]) && var(29)
trigger7 = stateno != [240,242]

trigger8 = var(58)=2
trigger8 = stateno = 1301

trigger9 = numhelper(780+id)
trigger9 = helper(780+id),sysvar(0)
trigger9 = stateno = 151 || stateno = 153 || (stateno = 155 && statetype != A)



[State -1]
type = ChangeState
value = 1000
triggerall = !ishelper
triggerall = var(59) <= 0
triggerall = var(58) != 3
triggerall = command = "ラストシェイカーEX" || (var(58) != 1 && command = "ラストシェイカーX")
trigger1 = statetype != A
trigger1 = (ctrl||fvar(28))
trigger2 = var(3) = 0
trigger2 = (stateno = [200,451]) && (movecontact||movereversed)
trigger2 = (stateno != [240,242])
trigger3 = stateno = 100
trigger4 = stateno = 101
trigger5 = stateno = 40 || stateno = 52
trigger6 = stateno = [195, 197]
trigger6 = time > ifelse((anim=196||anim=198),18,64)

trigger7 = (stateno = [200,451]) && var(29)
trigger7 = stateno != [240,242]

trigger8 = var(58)=2
trigger8 = stateno = 1301

trigger9 = numhelper(780+id)
trigger9 = helper(780+id),sysvar(0)
trigger9 = stateno = 151 || stateno = 153 || (stateno = 155 && statetype != A)


[State -1]
type = ChangeState
value = 1010
triggerall = !ishelper
triggerall = var(59) <= 0
triggerall = var(58) = 3
triggerall = command = "ラストシェイカーX"
trigger1 = statetype != A
trigger1 = (ctrl||fvar(28))
trigger2 = var(3) = 0
trigger2 = (stateno = [200,451]) && (movecontact||movereversed)
trigger2 = (stateno != [240,242])
trigger3 = stateno = 100
trigger4 = stateno = 101
trigger5 = stateno = 40 || stateno = 52
trigger6 = stateno = [195, 197]
trigger6 = time > ifelse((anim=196||anim=198),18,64)

trigger7 = (stateno = [200,451]) && var(29)
trigger7 = stateno != [240,242]

trigger8 = var(58)=2
trigger8 = stateno = 1301

trigger9 = numhelper(780+id)
trigger9 = helper(780+id),sysvar(0)
trigger9 = stateno = 151 || stateno = 153 || (stateno = 155 && statetype != A)

[State -1]
type = ChangeState
value = 1950
triggerall = !ishelper
triggerall = var(59) <= 0
triggerall = var(58) = 1
triggerall = var(36) != 1
triggerall = var(42) != 1
triggerall = command = "シークレットガーデン"
trigger1 = statetype = A
trigger1 = (ctrl||fvar(28))
trigger2 = (stateno = [600,650]) && (movecontact||movereversed || var(29)) && var(3) = 0
trigger3 = (stateno = 110 && time >= 4) || (stateno = 115 && time >= 5)

trigger4 = numhelper(780+id)
trigger4 = helper(780+id),sysvar(0)
trigger4 = stateno = 155 && statetype = A

[State -1]
type = ChangeState
value = 1650
triggerall = !ishelper
triggerall = var(59) <= 0
triggerall = var(34) = 0
triggerall = command = "シークレットガーデン"
triggerall = var(58) != 3
triggerall = var(58) != 1
trigger1 = statetype = A
trigger1 = (ctrl||fvar(28))
trigger2 = (stateno = [600,650]) && (movecontact||movereversed || var(29)) && var(3) = 0
trigger3 = (stateno = 110 && time >= 4) || (stateno = 115 && time >= 5)

trigger4 = numhelper(780+id)
trigger4 = helper(780+id),sysvar(0)
trigger4 = stateno = 155 && statetype = A

[State -1]
type = ChangeState
value = 1900
triggerall = !ishelper
triggerall = var(59) <= 0
triggerall = var(58) = 1
triggerall = var(36) != 1
triggerall = var(42) != 1
triggerall = command = "シークレットガーデン"
trigger1 = statetype != A
trigger1 = (ctrl||fvar(28))
trigger2 = var(3) = 0
trigger2 = (stateno = [200,451]) && (movecontact||movereversed)
trigger2 = (stateno != [240,242])
trigger3 = stateno = 100
trigger4 = stateno = 101
trigger5 = stateno = 40 || stateno = 52
trigger6 = stateno = [195, 197]
trigger6 = time > ifelse((anim=196||anim=198),18,64)

trigger7 = (stateno = [200,451]) && var(29)
trigger7 = stateno != [240,242]

trigger8 = var(58)=2
trigger8 = stateno = 1301

trigger9 = numhelper(780+id)
trigger9 = helper(780+id),sysvar(0)
trigger9 = stateno = 151 || stateno = 153 || (stateno = 155 && statetype != A)

[State -1]
type = ChangeState
value = 1700
triggerall = !ishelper
triggerall = var(59) <= 0
triggerall = var(36) != 1
triggerall = var(42) != 1
triggerall = command = "シークレットガーデン"
trigger1 = statetype != A
trigger1 = (ctrl||fvar(28))
trigger2 = var(3) = 0
trigger2 = (stateno = [200,451]) && (movecontact||movereversed)
trigger2 = (stateno != [240,242])
trigger3 = stateno = 100
trigger4 = stateno = 101
trigger5 = stateno = 40 || stateno = 52
trigger6 = stateno = [195, 197]
trigger6 = time > ifelse((anim=196||anim=198),18,64)

trigger7 = (stateno = [200,451]) && var(29)
trigger7 = stateno != [240,242]

trigger8 = var(58)=2
trigger8 = stateno = 1301

trigger9 = numhelper(780+id)
trigger9 = helper(780+id),sysvar(0)
trigger9 = stateno = 151 || stateno = 153 || (stateno = 155 && statetype != A)



[State -1]
type = ChangeState
value = 1100 + (var(58)=1)*20
triggerall = !ishelper
triggerall = var(59) <= 0
triggerall = var(36) != 1
triggerall = var(42) != 1
triggerall = command = "タンデムトップ＿Ｓ"
trigger1 = statetype != A
trigger1 = (ctrl||fvar(28))
trigger2 = var(3) = 0
trigger2 = (stateno = [200,451]) && (movecontact||movereversed)
trigger2 = (stateno != [240,242])
trigger3 = stateno = 100
trigger4 = stateno = 101
trigger5 = stateno = 40 || stateno = 52
trigger6 = stateno = [195, 197]
trigger6 = time > ifelse((anim=196||anim=198),18,64)

trigger7 = (stateno = [200,451]) && var(29)
trigger7 = stateno != [240,242]

trigger8 = var(58)=2
trigger8 = stateno = 1301

trigger9 = numhelper(780+id)
trigger9 = helper(780+id),sysvar(0)
trigger9 = stateno = 151 || stateno = 153 || (stateno = 155 && statetype != A)

[State -1]
type = ChangeState
value = 1150 + (var(58)=1)*20
triggerall = !ishelper
triggerall = var(59) <= 0
triggerall = var(36) != 1
triggerall = var(42) != 1
triggerall = command = "タンデムトップ＿ＨＳ"
trigger1 = statetype != A
trigger1 = (ctrl||fvar(28))
trigger2 = var(3) = 0
trigger2 = (stateno = [200,451]) && (movecontact||movereversed)
trigger2 = (stateno != [240,242])
trigger3 = stateno = 100
trigger4 = stateno = 101
trigger5 = stateno = 40 || stateno = 52
trigger6 = stateno = [195, 197]
trigger6 = time > ifelse((anim=196||anim=198),18,64)

trigger7 = (stateno = [200,451]) && var(29)
trigger7 = stateno != [240,242]

trigger8 = var(58)=2
trigger8 = stateno = 1301

trigger9 = numhelper(780+id)
trigger9 = helper(780+id),sysvar(0)
trigger9 = stateno = 151 || stateno = 153 || (stateno = 155 && statetype != A)

;---------------------------------------------------------------------------

;---------------------------------------------------------------------------

[State 220, 4]
type = ChangeState
triggerall = var(22)
triggerall = stateno != [241,242]
triggerall = movetype != H
triggerall = statetype = S || statetype = C
triggerall = command = "holdup" && var(59) <= 0 || var(59)>0 || fvar(39)
triggerall = (p2stateno = [246,248]) && p2movetype = H
trigger1 = stateno = 200 && (movecontact||movereversed||fvar(28))
trigger2 = stateno = 210 && (movecontact||movereversed||fvar(28))
trigger3 = (stateno = [220,221]) && (movecontact||movereversed||fvar(28))
trigger4 = stateno = 420 && (movecontact||movereversed||fvar(28))
trigger5 = stateno = 430 && (movecontact||movereversed||fvar(28))

trigger6 = stateno = 221 && var(29)

trigger7 = stateno = 240 && movehit
trigger8 = ctrl

trigger9 = numhelper(780+id)
trigger9 = helper(780+id),sysvar(0)
trigger9 = (stateno = [200,236]) && (movecontact||movereversed||fvar(28))

trigger10 = numhelper(780+id)
trigger10 = helper(780+id),sysvar(0)
trigger10 = (stateno = [400,450]) && (movecontact||movereversed||fvar(28))

value = 241
ctrl = 0

;---------------------------------------------------------------------------


[State -1, Run Fwd]
type = ChangeState
value = 100
triggerall = !ishelper
triggerall = var(59) <= 0
trigger1 = command = "FF" || ((helper(780+id),fvar(7) = [1,10]) && command = "fwd")
trigger1 = statetype = S
trigger1 = ctrl
;---------------------------------------------------------------------------
[State -1, Run Back]
type = ChangeState
value = 105
triggerall = !ishelper
triggerall = var(59) <= 0
trigger1 = command = "BB"
trigger1 = statetype = S
trigger1 = ctrl
;---------------------------------------------------------------------------
[State 空中投げ]
type = ChangeState
value = 850
triggerall = var(58) != 3
triggerall = !ishelper
triggerall = var(59) <= 0
triggerall = statetype = A
triggerall = (ctrl||fvar(28))
triggerall = p2bodydist X < 56 - (var(58)=2)*12
triggerall = p2bodydist Y > -80
triggerall = p2bodydist Y < 20
triggerall = p2statetype = A
triggerall = p2movetype != H
triggerall = !helper(780+id),var(8)
trigger1 = command = "fwd_b"
trigger2 = command = "back_b"
;---------------------------------------------------------------------------
[State 投げ]
type = ChangeState
value = 800
triggerall = !ishelper
triggerall = var(59) <= 0
triggerall = statetype = S
triggerall = stateno != 100
triggerall = p2bodydist X = [-22,22]
triggerall = p2statetype != A
triggerall = p2statetype != L
triggerall = p2stateno != 40
triggerall = command = "fwd_b"
trigger1 = (ctrl||fvar(28)) || (StateNo = 5120 && animtime = 0)
trigger2 = stateno = 101 && time >= 6
trigger3 = stateno = [195, 197]
trigger3 = time > ifelse((anim=196||anim=198),18,64)
trigger4 = stateno = 52
[State 投げ]
type = ChangeState
value = 805
triggerall = !ishelper
triggerall = var(59) <= 0
triggerall = statetype = S
triggerall = stateno != 100
triggerall = p2bodydist X = [-22,22]
triggerall = p2statetype != A
triggerall = p2statetype != L
triggerall = p2stateno != 40
triggerall = command = "back_b"
trigger1 = (ctrl||fvar(28)) || (StateNo = 5120 && animtime = 0)
trigger2 = stateno = 101 && time >= 6
trigger3 = stateno = [195, 197]
trigger3 = time > ifelse((anim=196||anim=198),18,64)
trigger4 = stateno = 52
;===========================================================================

[State -1]
type = ChangeState
value = 130+(statetype = C)+(statetype = A)*2
triggerall = !ishelper
triggerall = roundstate = 2
triggerall = power > 0
triggerall = var(25) = 1
triggerall = stateno != [110,115]
triggerall = var(40) = 0
trigger1 = (ctrl||fvar(28))||((stateno = [160,164])&&time <= 1)&&stateno%2=0
trigger2 = stateno = 100
trigger3 = stateno = 101
trigger4 = stateno = 52
trigger5 = stateno = [195, 197]
trigger5 = time > ifelse((anim=196||anim=198),18,64)

;===========================================================================
[State -1]
type = ChangeState
value = 450
triggerall = !ishelper
triggerall = var(59) <= 0
triggerall = (command = "down_z")||(command = "down_yb" && var(58)=3)
triggerall = var(3) = 0
trigger1 = (movecontact||movereversed)
trigger1 = (stateno = [200,231])||(stateno = [400,430])
trigger1 = (stateno != [205,206])||var(58)=3
trigger1 = (stateno != [220,225])||var(58)=3
trigger1 = stateno != 215
trigger1 = (stateno != 420)||var(58)=3

[State -1]
type = ChangeState
value = 450
triggerall = !ishelper
triggerall = var(59) <= 0
triggerall = command = "holddown"
triggerall = (command = "z")||(command = "dust" && var(58)=3)
trigger1 = statetype = C
trigger1 = (ctrl||fvar(28))
trigger2 = stateno = [100, 101]
trigger3 = stateno = [195, 197]
trigger3 = time > ifelse((anim=196||anim=198),18,64)
trigger4 = stateno = 12||stateno = 52

trigger5 = var(29)
trigger5 = (stateno = [200,231])||(stateno = [400,430])
trigger5 = (stateno != [205,206])||var(58)=3
trigger5 = (stateno != [220,225])||var(58)=3
trigger5 = stateno != 215
trigger5 = (stateno != 420)||var(58)=3

;---------------------------------------------------------------------------
[State -1]
type = ChangeState
value = 240
triggerall = !ishelper
triggerall = var(59) <= 0
triggerall = (command = "z")||(command = "dust" && var(58)=3)
triggerall = var(3) = 0
trigger1 = (movecontact||movereversed)
trigger1 = (stateno = [200,231])||(stateno = [400,430])
trigger1 = (stateno != [220,225])||var(58)=3
trigger1 = stateno != 215
trigger1 = (stateno != 420)||var(58)=3
trigger2 = (movecontact||movereversed)
trigger2 = command != "down_z"
trigger2 = var(58)!=3
trigger2 = (stateno = [220,225])||stateno = 420

[State -1]
type = ChangeState
value = 240
triggerall = !ishelper
triggerall = var(59) <= 0
triggerall = (command = "z")||(command = "dust" && var(58)=3)
triggerall = command != "holddown"
trigger1 = statetype = S
trigger1 = (ctrl||fvar(28))
trigger2 = stateno = [100, 101]
trigger3 = stateno = [195, 197]
trigger3 = time > ifelse((anim=196||anim=198),18,64)
trigger4 = stateno = 12||stateno = 52

trigger5 = var(29)
trigger5 = (stateno = [200,231])||(stateno = [400,430])
;---------------------------------------------------------------------------

[State -1, Crouching Light Punch]
type = ChangeState
value = 400
triggerall = !ishelper
triggerall = var(59) <= 0
triggerall = command = "down_x"
triggerall = var(3) = 0
trigger1 = stateno = 200
trigger1 = (movecontact||movereversed)
trigger2 = stateno = 400
trigger2 = (movecontact||movereversed)

[State -1, Crouching Light Punch]
type = ChangeState
value = 400
triggerall = !ishelper
triggerall = var(59) <= 0
triggerall = command = "holddown"
triggerall = command = "x"
trigger1 = statetype = C
trigger1 = (ctrl||fvar(28))
trigger2 = stateno = [100, 101]
trigger3 = stateno = [195, 197]
trigger3 = time > ifelse((anim=196||anim=198),18,64)
trigger4 = stateno = 12||stateno = 52
trigger5 = stateno = 200
trigger5 = time >= 5+(var(58)=2)*2
trigger6 = stateno = 400
trigger6 = time >= 6
trigger7 = stateno = 210
trigger7 = time >= 11
trigger8 = stateno = 410
trigger8 = time >= 9
;---------------------------------------------------------------------------
[State -1]
type = ChangeState
value = 205
triggerall = !ishelper
triggerall = var(59) <= 0
triggerall = command = "back_x"
triggerall = p2dist x < 0
trigger1 = statetype = S
trigger1 = (ctrl||fvar(28))
trigger2 = stateno = [100, 101]

[State -1]
type = ChangeState
value = 205
triggerall = !ishelper
triggerall = var(59) <= 0
triggerall = (command = "fwd_x")||((!movecontact&&(stateno!=[950,961]))&&(command = "x"&&command="holdfwd"&&command!="holddown"))
triggerall = p2dist x >= 0
trigger1 = statetype = S
trigger1 = (ctrl||fvar(28))
trigger2 = (stateno = [200,221])||(stateno = [400,410])
trigger2 = stateno != [205,206]
trigger2 = stateno != 215
trigger2 = (movecontact||movereversed)&&var(3) = 0
trigger3 = stateno = [100, 101]
trigger4 = stateno = [195, 197]
trigger4 = time > ifelse((anim=196||anim=198),18,64)
trigger5 = stateno = 12||stateno = 52

trigger6 = stateno = 200
trigger6 = time >= 5+(var(58)=2)*2
trigger7 = stateno = 400
trigger7 = time >= 6

[State -1]
type = ChangeState
value = 200
triggerall = !ishelper
triggerall = var(59) <= 0
triggerall = command = "x"
triggerall = var(3) = 0
trigger1 = stateno = 200||stateno = 400||(stateno = 420&&(var(58)=0||var(58)=2))
trigger1 = (movecontact||movereversed)

[State -1]
type = ChangeState
value = 200
triggerall = !ishelper
triggerall = var(59) <= 0
triggerall = command = "x"
triggerall = command != "holddown"
trigger1 = statetype = S
trigger1 = (ctrl||fvar(28))
trigger2 = stateno = [100, 101]
trigger3 = stateno = [195, 197]
trigger3 = time > ifelse((anim=196||anim=198),18,64)
trigger4 = stateno = 12||stateno = 52
trigger5 = stateno = 200
trigger5 = time >= 5+(var(58)=2)*2
trigger6 = stateno = 400
trigger6 = time >= 6

[State -1]
type = ChangeState
value = 410
triggerall = !ishelper
triggerall = var(59) <= 0
triggerall = command = "down_a"
triggerall = var(3) = 0
trigger1 = stateno = 200||stateno = 210
trigger1 = (movecontact||movereversed)
trigger2 = stateno = [400,410]
trigger2 = (movecontact||movereversed)

[State -1]
type = ChangeState
value = 410
triggerall = !ishelper
triggerall = var(59) <= 0
triggerall = command = "holddown"
triggerall = command = "a"
trigger1 = statetype = C
trigger1 = (ctrl||fvar(28))
trigger2 = stateno = [100, 101]
trigger3 = stateno = [195, 196]
trigger3 = time > ifelse(anim = 196,20,63)
trigger4 = stateno = 12||stateno = 52
trigger5 = stateno = 200
trigger5 = time >= 5+(var(58)=2)*2
trigger6 = stateno = 400
trigger6 = time >= 6

trigger7 = stateno = 410
trigger7 = time >= 9

[State -1]
type = ChangeState
value = 215
triggerall = !ishelper
triggerall = var(59) <= 0
triggerall = command = "back_a"
triggerall = p2dist x < 0
trigger1 = statetype = S
trigger1 = (ctrl||fvar(28))
trigger2 = stateno = [100, 101]

[State -1]
type = ChangeState
value = 215
triggerall = !ishelper
triggerall = var(59) <= 0
triggerall = (command = "fwd_a")||((!movecontact&&(stateno!=[950,961]))&&(command = "a"&&command="holdfwd"&&command!="holddown"))
triggerall = p2dist x >= 0
trigger1 = statetype = S
trigger1 = (ctrl||fvar(28))

trigger2 = stateno = 200||stateno = 210
trigger2 = (movecontact||movereversed)&&var(3) = 0
trigger3 = stateno = [400,410]
trigger3 = (movecontact||movereversed)&&var(3) = 0

trigger4 = stateno = [100, 101]
trigger5 = stateno = [195, 197]
trigger5 = time > ifelse((anim=196||anim=198),18,64)
trigger6 = stateno = 12||stateno = 52

[State -1]
type = ChangeState
value = 210
triggerall = !ishelper
triggerall = var(59) <= 0
triggerall = command = "a"
triggerall = var(3) = 0
trigger1 = stateno = 200||stateno = 210
trigger1 = (movecontact||movereversed)
trigger2 = stateno = [400,410]
trigger2 = (movecontact||movereversed)
;---------------------------------------------------------------------------

[State -1]
type = ChangeState
value = 210
triggerall = !ishelper
triggerall = var(59) <= 0
triggerall = command = "a"
triggerall = command != "holddown"
trigger1 = statetype = S
trigger1 = (ctrl||fvar(28))
trigger2 = stateno = [100, 101]
trigger3 = stateno = [195, 197]
trigger3 = time > ifelse((anim=196||anim=198),18,64)
trigger4 = stateno = 12||stateno = 52
trigger5 = stateno = 200
trigger5 = time >= 5+(var(58)=2)*2
trigger6 = stateno = 400
trigger6 = time >= 6

trigger7 = stateno = 210
trigger7 = time >= 11

trigger8 = stateno = 410
trigger8 = time >= 9
;---------------------------------------------------------------------------

[State -1]
type = ChangeState
value = 420
triggerall = !ishelper
triggerall = var(59) <= 0
triggerall = command = "down_y"
triggerall = var(3) = 0
trigger1 = stateno = [200,225]
trigger1 = stateno != 215
trigger1 = (movecontact||movereversed)
trigger2 = stateno = [400,410]
trigger2 = (movecontact||movereversed)

[State -1]
type = ChangeState
value = 420
triggerall = !ishelper
triggerall = var(59) <= 0
triggerall = command = "holddown"
triggerall = command = "y"
trigger1 = statetype = C
trigger1 = (ctrl||fvar(28))
trigger2 = stateno = [100, 101]
trigger3 = stateno = [195, 196]
trigger3 = time > ifelse(anim = 196,20,63)
trigger4 = stateno = 12||stateno = 52

[State -1]
type = ChangeState
value = 220
triggerall = !ishelper
triggerall = var(59) <= 0
triggerall = command = "y"
triggerall = p2bodydist X=[-32,34]
triggerall = var(3) = 0
trigger1 = stateno = [200,210]
trigger1 = (movecontact||movereversed)
trigger2 = stateno = [400,410]
trigger2 = (movecontact||movereversed)

[State -1]
type = ChangeState
value = 220
triggerall = !ishelper
triggerall = var(59) <= 0
triggerall = command = "y"
triggerall = p2bodydist X=[-32,34]
triggerall = command != "holddown"
trigger1 = statetype = S
trigger1 = (ctrl||fvar(28))
trigger2 = stateno = [100, 101]
trigger3 = stateno = [195, 197]
trigger3 = time > ifelse((anim=196||anim=198),18,64)
trigger4 = stateno = 12||stateno = 52
;---------------------------------------------------------------------------

[State -1]
type = ChangeState
value = 225
triggerall = !ishelper
triggerall = var(59) <= 0
triggerall = command = "y"
triggerall = var(3) = 0
trigger1 = p2bodydist X > 34 || p2bodydist X < -34
trigger1 = stateno = [200,210]
trigger1 = (movecontact||movereversed)
trigger2 = p2bodydist X > 34 || p2bodydist X < -34
trigger2 = stateno = [400,410]
trigger2 = (movecontact||movereversed)
trigger3 = stateno = [220,221]
trigger3 = (movecontact||movereversed)

[State -1]
type = ChangeState
value = 225
triggerall = !ishelper
triggerall = var(59) <= 0
triggerall = command = "y"
triggerall = command != "holddown"
triggerall = p2bodydist X > 34 || p2bodydist X < -34
trigger1 = statetype = S
trigger1 = (ctrl||fvar(28))
trigger2 = stateno = [100, 101]
trigger3 = stateno = [195, 197]
trigger3 = time > ifelse((anim=196||anim=198),18,64)
trigger4 = stateno = 12||stateno = 52

;---------------------------------------------------------------------------
[State -1]
type = ChangeState
value = 430
triggerall = !ishelper
triggerall = var(59) <= 0
triggerall = command = "down_b"
triggerall = var(3) = 0
trigger1 = (stateno = [200,225])||(stateno = [400,420])
trigger1 = stateno != 215
trigger1 = (movecontact||movereversed)

[State -1]
type = ChangeState
value = 430
triggerall = !ishelper
triggerall = var(59) <= 0
triggerall = command = "holddown"
triggerall = command = "b"
trigger1 = statetype = C
trigger1 = (ctrl||fvar(28))
trigger2 = stateno = [100, 101]
trigger3 = stateno = [195, 196]
trigger3 = time > ifelse((anim=196||anim=198),18,64)
trigger4 = stateno = 12||stateno = 52

[State -1]
type = ChangeState
value = 235
triggerall = !ishelper
triggerall = var(59) <= 0
triggerall = command = "back_b"
triggerall = p2dist x < 0
trigger1 = statetype = S
trigger1 = (ctrl||fvar(28))
trigger2 = stateno = [100, 101]

[State -1]
type = ChangeState
value = 235
triggerall = !ishelper
triggerall = var(59) <= 0
triggerall = (command = "fwd_b")||((!movecontact&&(stateno!=[950,961]))&&(command = "b"&&command="holdfwd"&&command!="holddown"))
triggerall = p2dist x >= 0
trigger1 = statetype = S
trigger1 = (ctrl||fvar(28))
trigger2 = stateno = [200,206]
trigger2 = (movecontact||movereversed) && var(3) = 0
trigger3 = stateno = [100, 101]
trigger4 = stateno = [195, 197]
trigger4 = time > ifelse((anim=196||anim=198),18,64)
trigger5 = stateno = 12||stateno = 52

[State -1]
type = ChangeState
value = 230
triggerall = !ishelper
triggerall = var(59) <= 0
triggerall = command = "b"
triggerall = var(3) = 0
trigger1 = (stateno = [200,225])||(stateno = [400,420])
trigger1 = stateno != 215
trigger1 = stateno != 410
trigger1 = (movecontact||movereversed)

[State -1]
type = ChangeState
value = 230
triggerall = !ishelper
triggerall = var(59) <= 0
triggerall = command = "b"
triggerall = command != "holddown"
trigger1 = statetype = S
trigger1 = (ctrl||fvar(28))
trigger2 = stateno = [100, 101]
trigger3 = stateno = [195, 197]
trigger3 = time > ifelse((anim=196||anim=198),18,64)
trigger4 = stateno = 12||stateno = 52
;---------------------------------------------------------------------------
[State -1, Taunt];敬意
type = ChangeState
value = 196
triggerall = !ishelper
triggerall = var(59) <= 0
triggerall = command = "fwd_s"
trigger1 = statetype != A
trigger1 = (ctrl||fvar(28))
trigger2 = stateno = 100
trigger3 = stateno = 101
trigger4 = stateno = 40 || stateno = 52
trigger5 = stateno = [195, 197]
trigger5 = time > ifelse((anim=196||anim=198),18,64)
;---------------------------------------------------------------------------
[State -1, Taunt]
type = ChangeState
value = 195
triggerall = !ishelper
triggerall = var(59) <= 0
triggerall = command = "start"
trigger1 = statetype != A
trigger1 = (ctrl||fvar(28))
trigger2 = (stateno = [200,451]) && (movecontact||movereversed)
trigger2 = (stateno != [240,242])
trigger3 = stateno = 100
trigger4 = stateno = 101
trigger5 = stateno = 40 || stateno = 52
trigger6 = stateno = [195, 197]
trigger6 = time > ifelse((anim=196||anim=198),18,64)

;---------------------------------------------------------------------------
[State ２段ジャンプ]
type = ChangeState
value = 99
triggerall = !ishelper
triggerall = var(59) <= 0
triggerall = command = "holdup"
triggerall = statetype = A
triggerall = var(11) = 0
triggerall = var(10) = 0
triggerall = var(12) = 0
trigger1 = var(13) = 2
trigger1 = ctrl
trigger1 = stateno != [120,155]
trigger2 = var(13) = 2
trigger2 = stateno = 610 && (movecontact||movereversed||fvar(28))

trigger4 = numhelper(780+id)
trigger4 = helper(780+id),sysvar(0)
trigger4 = var(13) = 2
trigger4 = (stateno = [600,639]) && (movecontact||movereversed||fvar(28))

;---------------------------------------------------------------------------
[State -1]
type = ChangeState
value = 41
triggerall = !ishelper
triggerall = var(59) <= 0
triggerall = command = "highjump" && var(17) = 1
triggerall = statetype != A
trigger1 = stateno = 200 && (movecontact||movereversed||fvar(28))
trigger2 = stateno = 210 && (movecontact||movereversed||fvar(28))
trigger3 = (stateno = [220,221]) && (movecontact||movereversed||fvar(28))
trigger4 = stateno = 420 && (movecontact||movereversed||fvar(28))
trigger5 = stateno = 430 && (movecontact||movereversed||fvar(28))

trigger6 = numhelper(780+id)
trigger6 = helper(780+id),sysvar(0)
trigger6 = (stateno = [200,236]) && (movecontact||movereversed||fvar(28))

trigger7 = numhelper(780+id)
trigger7 = helper(780+id),sysvar(0)
trigger7 = (stateno = [400,450]) && (movecontact||movereversed||fvar(28))

;ignorehitpause = 1
[State -1]
type = ChangeState
value = 41
triggerall = !ishelper
triggerall = var(59) <= 0
triggerall = command = "highjumpcancel" && var(17) = 0
triggerall = statetype != A
trigger1 = stateno = 200 && (movecontact||movereversed||fvar(28))
trigger2 = stateno = 210 && (movecontact||movereversed||fvar(28))
trigger3 = (stateno = [220,221]) && (movecontact||movereversed||fvar(28))
trigger4 = stateno = 420 && (movecontact||movereversed||fvar(28))
trigger5 = stateno = 430 && (movecontact||movereversed||fvar(28))

trigger6 = numhelper(780+id)
trigger6 = helper(780+id),sysvar(0)
trigger6 = (stateno = [200,236]) && (movecontact||movereversed||fvar(28))

trigger7 = numhelper(780+id)
trigger7 = helper(780+id),sysvar(0)
trigger7 = (stateno = [400,450]) && (movecontact||movereversed||fvar(28))

ignorehitpause = 1
[State -1];ジャンプ属性テスト
type = varset
triggerall = !ishelper
triggerall = var(59) <= 0
triggerall = command = "holdup" && command != "holddown" 
triggerall = statetype != A
trigger1 = stateno = 200 && (movecontact||movereversed||fvar(28))
trigger2 = stateno = 210 && (movecontact||movereversed||fvar(28))
trigger3 = (stateno = [220,221]) && (movecontact||movereversed||fvar(28))
trigger4 = stateno = 420 && (movecontact||movereversed||fvar(28))
trigger5 = stateno = 430 && (movecontact||movereversed||fvar(28))

trigger6 = numhelper(780+id)
trigger6 = helper(780+id),sysvar(0)
trigger6 = (stateno = [200,236]) && (movecontact||movereversed||fvar(28))

trigger7 = numhelper(780+id)
trigger7 = helper(780+id),sysvar(0)
trigger7 = (stateno = [400,450]) && (movecontact||movereversed||fvar(28))

var(17) = 1
ignorehitpause = 1
;---------------------------------------------------------------------------
[State -1]
type = ChangeState
value = 40
triggerall = !ishelper
triggerall = var(59) <= 0
triggerall = command = "holdup"
triggerall = statetype != A
trigger1 = stateno = 200 && (movecontact||movereversed||fvar(28))
trigger2 = stateno = 210 && (movecontact||movereversed||fvar(28))
trigger3 = (stateno = [220,221]) && (movecontact||movereversed||fvar(28))
trigger4 = stateno = 420 && (movecontact||movereversed||fvar(28))
trigger5 = stateno = 430 && (movecontact||movereversed||fvar(28))

trigger6 = stateno = 221 && var(29)

trigger7 = numhelper(780+id)
trigger7 = helper(780+id),sysvar(0)
trigger7 = (stateno = [200,236]) && (movecontact||movereversed||fvar(28))

trigger8 = numhelper(780+id)
trigger8 = helper(780+id),sysvar(0)
trigger8 = (stateno = [400,450]) && (movecontact||movereversed||fvar(28))

;---------------------------------------------------------------------------
[State 空中ダッシュ]
type = ChangeState
value = 110
triggerall = !ishelper
triggerall = var(59) <= 0
triggerall = var(10) <= 1
triggerall = statetype = A
triggerall = command = "FF" || ((helper(780+id),fvar(8) = [1,10]) && (command = "fwd"||(command!="holdup"&&command!="holddown"&&command="holdfwd"&&(prevstateno=[40,41])&&helper(780+id),sysvar(0))))
triggerall = pos y <= ifelse(vel y < 0,-30,-10) || helper(780+id),sysvar(0)
trigger1 = ((stateno = [50,59])||(stateno = [120,140])) && ctrl
;trigger1 = var(13) < 2
trigger2 = ((stateno = [5200,5210]) || stateno = 5040) && ctrl
trigger3 = stateno = [241,242]
;trigger3 = var(13) < 2
trigger4 = stateno = 650 && ctrl

trigger5 = var(58)=2
trigger5 = stateno = [620,640]
trigger5 = (movecontact||movereversed)

;---------------------------------------------------------------------------
[State 空中ダッシュ]
type = ChangeState
value = 115
triggerall = !ishelper
triggerall = var(59) <= 0
triggerall = var(10) <= 1
triggerall = statetype = A
triggerall = command = "BB"
triggerall = pos y <= ifelse(vel y < 0,-30,-10)
trigger1 = ((stateno = [50,59])||(stateno = [120,140])) && ctrl
;trigger1 = var(13) < 2
trigger2 = ((stateno = [5200,5210]) || stateno = 5040) && ctrl
trigger3 = stateno = [241,242]
;trigger3 = var(13) < 2
trigger4 = stateno = 650 && ctrl

;---------------------------------------------------------------------------
[State -1]
type = ChangeState
value = 640
triggerall = !ishelper
triggerall = var(59) <= 0
triggerall = var(58) != 3
triggerall = command = "z"
trigger1 = statetype = A
trigger1 = (ctrl||fvar(28))
trigger2 = (stateno = [600,610])
trigger2 = (movecontact||movereversed) && var(3) = 0
trigger3 = (stateno = 110 && time >= 4) || (stateno = 115 && time >= 5)
trigger4 = stateno = 99 && prevstateno = 610

;---------------------------------------------------------------------------

[State -1]
type = ChangeState
value = 600
triggerall = !ishelper
triggerall = var(59) <= 0
triggerall = command = "x"
trigger1 = statetype = A
trigger1 = (ctrl||fvar(28))
trigger2 = stateno = [600,620]
trigger2 = (movecontact||movereversed) && var(3) = 0
trigger3 = (stateno = 110 && time >= 4) || (stateno = 115 && time >= 5)
trigger4 = stateno = 99 && prevstateno = 610
;---------------------------------------------------------------------------

[State -1]
type = ChangeState
value = 610
triggerall = !ishelper
triggerall = var(59) <= 0
triggerall = command = "a"
trigger1 = statetype = A
trigger1 = (ctrl||fvar(28))
trigger2 = stateno = 600
trigger2 = (movecontact||movereversed) && var(3) = 0
trigger3 = (stateno = 110 && time >= 4) || (stateno = 115 && time >= 5)

;---------------------------------------------------------------------------
[State -1]
type = ChangeState
value = 620
triggerall = !ishelper
triggerall = var(59) <= 0
triggerall = command = "y"
trigger1 = statetype = A
trigger1 = (ctrl||fvar(28))
trigger2 = stateno = 600 || stateno = 610
trigger2 = (movecontact||movereversed) && var(3) = 0
trigger3 = (stateno = 110 && time >= 4) || (stateno = 115 && time >= 5)
trigger4 = stateno = 99 && prevstateno = 610
;---------------------------------------------------------------------------
[State -1]
type = ChangeState
value = 635
triggerall = !ishelper
triggerall = var(59) <= 0
triggerall = var(58) = 0
triggerall = command = "b"
triggerall = command = "holdfwd"
trigger1 = statetype = A
trigger1 = (ctrl||fvar(28))
trigger2 = stateno = 600 || stateno = 620
trigger2 = (movecontact||movereversed) && var(3) = 0
trigger3 = (stateno = 110 && time >= 4) || (stateno = 115 && time >= 5)

[State -1]
type = ChangeState
value = 630+(var(58)=2)*5
triggerall = !ishelper
triggerall = var(59) <= 0
triggerall = command = "b"
trigger1 = statetype = A
trigger1 = (ctrl||fvar(28))
trigger2 = stateno = 600 || stateno = 620
trigger2 = (movecontact||movereversed) && var(3) = 0
trigger3 = (stateno = 110 && time >= 4) || (stateno = 115 && time >= 5)

;---------------------------------------------------------------------------

[State -1]
type = ChangeState
value = 120
triggerall = var(59) <= 0
triggerall = !ishelper
triggerall = roundstate = 2
triggerall = command = "holdback"
triggerall = command = "holdup"
triggerall = statetype = A
trigger1 = ctrl&&(Stateno!=[120,154])
trigger1 = inguarddist
